package com.sz.common.base.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Function: TreeNode <br>
 * Author: wentao.chang <br>
 * Date: 2016-10-31 16:56:00
 */
public class TreeNode implements Serializable {
    private int id;

    private String name;

    private boolean isLeaf;

    private int parentId;
    /**
     * 产品是否公开
     */
    private Boolean isPublic;

    private List<TreeNode> children;

    private List<Integer> parentIds = new ArrayList<>();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<TreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean isLeaf() {
        return isLeaf;
    }

    public void setLeaf(boolean isLeaf) {
        this.isLeaf = isLeaf;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public List<Integer> getParentIds() {
        return parentIds;
    }

    public void setParentIds(List<Integer> parentIds) {
        this.parentIds = parentIds;
    }

    public Boolean getIsPublic() {
        return isPublic;
    }

    public void setIsPublic(Boolean aPublic) {
        isPublic = aPublic;
    }
}
